import threading
from abc import ABC, abstractmethod
from log import logger





class ProjectPlcClient(ABC): # plc客户端, 项目相关

    # def __init__(self, lay1_client):
    #     self.lay1_client = lay1_client  # plc_client.layer1.abc_client
    #     self.lock = threading.Lock() # 同步
    @abstractmethod
    def connect(self):
        pass

    @abstractmethod
    def close(self):
        pass

    @abstractmethod
    def isConnected(self):
        pass

    @abstractmethod
    def wait_plc(self):
        pass

    @abstractmethod
    def set_is_ready(self):
        pass

    def set_res(self):
        pass